#include "Renderer.h"

namespace Proton 
{
	namespace Modules 
	{

		Renderer::Renderer(void)
		{
		}


		Renderer::~Renderer(void)
		{
		}

		void Renderer::initialize()
		{
			pDeviceContext = pGraphics->getDeviceContext();
			pSwapChain = pGraphics->getSwapChain(); 
			pBackBuffer = pGraphics->getBackBuffer();
		}

		void Renderer::update()
		{
		}

		void Renderer::render()
		{
			static float clearColor[4] = {0.2f, 0.2f, 0.2f, 1.0f};
			pDeviceContext->ClearRenderTargetView(pBackBuffer, clearColor);
			pSwapChain->Present(0, 0);
		}
	}
}
